<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	template="/xhtml/bases/advertisementEditTabBase.xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:t="http://myfaces.apache.org/tomahawk"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:bargas="http://barganhas.com.br/barganhas">
	
	<ui:define name="tabFormContent">
		
		<!-- advertisement type -->
		<h:outputLabel value="#{msg.advertisementAdvertisementType}:" for="advertisementType"/>
		<bargas:outputText id="advertisementType" value="#{advertisementBean.advertisement.advertisementType.title}"
					styleClass="inputMainForm bigInputMainForm inputDisable"/>
		
		<!-- title -->
		<h:outputLabel value="#{msg.privateAreaTitle}:" for="title"/>
		<bargas:outputText id="title" value="#{advertisementBean.advertisement.title}"
					styleClass="inputMainForm bigInputMainForm inputDisable"/>
		
		<!-- description -->
		<h:outputLabel value="#{msg.privateAreaDescription}:" for="description"/>
		<h:inputTextarea id="description" value="#{advertisementBean.advertisement.description}" rows="3" styleClass="inputTextAreaMainForm mediumInputMainForm">
		</h:inputTextarea>
		
		<!-- category -->
		<h:outputLabel value="#{msg.advertisementCategory}:" for="category"/>
		<h:selectOneMenu id="category" value="#{advertisementBean.selectedCategory}"
			styleClass="inputMainForm bigInputuMainFormSelectMenu bigInputMainForm" converter="omnifaces.SelectItemsConverter">
			<f:selectItem itemLabel="#{msg.msgSelect}" itemValue=" " noSelectionOption="true"/>
			<f:selectItems value="#{advertisementBean.listCategories}" />
		</h:selectOneMenu>
		
		<!-- contact phone number 1 -->
		<h:outputLabel value="#{msg.advertisementContactPhoneNumberOne}:" for="contactPhoneNumberOne"/>
		<h:inputText id="contactPhoneNumberOne" value="#{advertisementBean.advertisement.contactPhoneNumberOne}"
					maxlength="50" styleClass="inputMainForm mediumInputMainForm"/>

		<!-- contact phone number 2 -->
		<h:outputLabel value="#{msg.advertisementContactPhoneNumberTwo}:" for="contactPhoneNumberTwo"/>
		<h:inputText id="contactPhoneNumberTwo" value="#{advertisementBean.advertisement.contactPhoneNumberTwo}"
					maxlength="50" styleClass="inputMainForm mediumInputMainForm"/>

		<!-- contact email -->
		<h:outputLabel value="#{msg.advertisementContactMail}:" for="contactEmail"/>
		<h:inputText id="contactEmail" value="#{advertisementBean.advertisement.contactEmail}"
					maxlength="50" styleClass="inputMainForm mediumInputMainForm"/>
		
		<!-- value -->
		<h:outputLabel value="#{msg.privateAreaCurrencyValue} ( #{msg.privateAreaCurrencySymbolReal} ):" for="currencyValue" />
		<bargas:inputCurrencyConverted id="currencyValue" value="#{advertisementBean.advertisement.value}" maxlength="12"
			styleClass="inputMainForm mediumInputMainForm" converterId="ConverterDoubleCurrencyReal"/>
		
		<!-- list exchange by -->
		<h:outputLabel value="#{msg.advertisementListExchangeBy}:" for="listExchangeBy"/>
		<h:panelGrid columns="2" cellpadding="0" cellspacing="0">
			<h:inputTextarea id="listExchangeBy" value="#{advertisementBean.advertisement.exchangeBy}" rows="3" styleClass="inputTextAreaMainForm mediumInputMainForm">
			</h:inputTextarea>
			
			<h:graphicImage id="listExchangeByInfo" value="/images/help.png" style="margin-left: 10px;">
				<rich:tooltip target="listExchangeByInfo" attached="true" direction="auto" followMouse="true" showDelay="500" value="#{msg.advertisementExchangeByInfo}"/>
			</h:graphicImage>
		</h:panelGrid>
	</ui:define>
	
</ui:composition>
